<%-- 
    Document   : index
    Created on : 26-nov-2013, 15:38:00
    Author     : Roberto
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="es">
    
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Seguridad Informatica</title>
        <link rel="stylesheet" href="css/bootstrap.css">
        <link rel="stylesheet" href="css/signin.css">
    </head>
    <body>


        <div class="container">

            <form class="form-signin" role="form" method="post">
                <h2 class="form-signin-heading">Reset Password</h2>
                <input type="text" name="login" class="form-control" placeholder="Login" id="login" ><br/>
                <%
                if (request.getParameter("error") != null) {
                    if (request.getParameter("error").equals("1")) {
                        %>
                        <span class="text-danger">El login no existe</span>
                        <%
                    } else if(request.getParameter("error").equals("2")) {
                        %>
                        <span class="text-danger">No has introducido un login</span>  
                        <%
                    } else if(request.getParameter("error").equals("3")) {
                        %>
                        <span class="text-danger">El usuario introducido todavia no ha sido dado de alta en el sistema. 
                            Por favor, espere a que el administrador le de el alta en el sistema</span>  
                        <%
                    }
                }
            %>
                <button class="btn btn-lg btn-primary btn-block" onclick="this.form.action = 'Procesar_Url.jsp'" type="submit">Enviar</button>
                <button class="btn btn-lg btn-primary btn-block" onclick="this.form.action = 'index.jsp'" type="submit">Volver</button>
            </form>
        </div>

    </body>
</html>
